-- GENERATED SPELL FOR [Collidus the Warp-Watcher] --


function spell0_18694(pUnit, Event) --@Blink,n/a--
pUnit:FullCastSpellOnTarget(38932,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18694', 647, 1)
end

function spell1_18694(pUnit, Event) --@Focused Bursts,n/a--
pUnit:FullCastSpellOnTarget(36414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18694', 12000, 1)
end

function spell2_18694(pUnit, Event) --@Psychic Scream,Self--
pUnit:FullCastSpellOnTarget(34322,pUnit)
pUnit:RegisterEvent('Sorts_18694', 4273, 1)
end

function Sorts_18694(pUnit, Event)
local choix_sorts_18694 = math.random(0, 2)
if choix_sorts_18694 == 0 then
pUnit:RegisterEvent('spell0_18694', 1, 1)
end
if choix_sorts_18694 == 1 then
pUnit:RegisterEvent('spell1_18694', 1, 1)
end
if choix_sorts_18694 == 2 then
pUnit:RegisterEvent('spell2_18694', 1, 1)
end
end

function mob18694_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18694', math.random(1500, 3000), 1)
end

function mob18694_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18694_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18694_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18694, 1, 'mob18694_Action')
RegisterUnitEvent(18694, 2, 'mob18694_Leave')
RegisterUnitEvent(18694, 3, 'mob18694_Kill')
RegisterUnitEvent(18694, 4, 'mob18694_Die')
